import { ElTableColumn } from 'element-plus'

export type TablePropType = InstanceType<typeof ElTableColumn>['$props'] & {
  isSlot?: boolean
  header_slot?: boolean // 是否自定义表头
  notSortable?: boolean // 是否不允许拖拽
}
export type DefaultTablePropType = Omit<TablePropType, 'notSortable'>
export interface TableConfigurationType {
  drag: true | 'column' | 'row' // 是否拖拽
  // eslint-disable-next-line no-unused-vars
  get_new_data: (data: Array<any>, drag: string) => void
  reload?: () => void
}
export interface PageType {
  currentPage: number
  pageSize: number
}
